package casa.depesos.app.com.http.data;

import android.os.Parcel;
import android.os.Parcelable;

import androidx.annotation.Keep;
import androidx.annotation.NonNull;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

@Keep
public class Me implements Parcelable {

    @SerializedName("eduid")
    @Expose
    public int edu;

    @SerializedName("stype")
    @Expose
    public String sex;

    @SerializedName("mns")
    @Expose
    public int child;

    @SerializedName("bdate")
    @Expose
    public String birth;

    @SerializedName("restype")
    @Expose
    public int house;

    @SerializedName("resloc")
    @Expose
    public String addr;

    @SerializedName("wnum")
    @Expose
    public String app;

    public String live;

    @SerializedName("resdes")
    @Expose
    public String liveDes;

    @SerializedName("relstatus")
    @Expose
    public int marry;

    @SerializedName("emlacc")
    @Expose
    public String email;

    public int option;

    public Me() {

    }

    protected Me(Parcel in) {
        edu = in.readInt();
        sex = in.readString();
        child = in.readInt();
        birth = in.readString();
        house = in.readInt();
        addr = in.readString();
        app = in.readString();
        live = in.readString();
        liveDes = in.readString();
        marry = in.readInt();
        email = in.readString();
        option = in.readInt();
    }

    public static final Creator<Me> CREATOR = new Creator<Me>() {
        @Override
        public Me createFromParcel(Parcel in) {
            return new Me(in);
        }

        @Override
        public Me[] newArray(int size) {
            return new Me[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(@NonNull Parcel parcel, int i) {
        parcel.writeInt(edu);
        parcel.writeString(sex);
        parcel.writeInt(child);
        parcel.writeString(birth);
        parcel.writeInt(house);
        parcel.writeString(addr);
        parcel.writeString(app);
        parcel.writeString(live);
        parcel.writeString(liveDes);
        parcel.writeInt(marry);
        parcel.writeString(email);
        parcel.writeInt(option);
    }
}
